<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'add.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <h1>添加</h1>
    <form action="srcon/add">
    	站点名称:<input name="name"/><br>
    	站点等级:<select name="slevel">
    			<option value="A">&nbsp;&nbsp;&nbsp;A&nbsp;&nbsp;&nbsp;</option>
    			<option value="B">&nbsp;&nbsp;&nbsp;B&nbsp;&nbsp;&nbsp;</option>
    			<option value="C">&nbsp;&nbsp;&nbsp;C&nbsp;&nbsp;&nbsp;</option>
    			<option value="D">&nbsp;&nbsp;&nbsp;D&nbsp;&nbsp;&nbsp;</option>
    		   </select><br>
    	所在区域<select name="ar.id">
    			<c:forEach items="${listar }" var="lar">
    				<option value="${lar.id }">${lar.name }</option>
    			
    			</c:forEach>
    	
    		 </select><br>
    		 <input type="submit" value="提交"/>
    </form>
  </body>
</html>
